package com.boot.project.service.impl;

import com.boot.project.dao.CommentDao;
import com.boot.project.dao.SpaceDao;
import com.boot.project.domain.SpaceDO;
import com.boot.project.service.SpaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SpaceServiceImpl implements SpaceService {
    @Autowired
    private SpaceDao spaceDao;

    @Override
    public int add(SpaceDO spaceDO) {
        return spaceDao.add(spaceDO);
    }

    @Override
    public List<SpaceDO> list() {
        return spaceDao.list();
    }

    @Override
    public int update(SpaceDO spaceDO) {
        return spaceDao.update(spaceDO);
    }
}
